package homework;

public class Homework6 {

	public static void main(String[] args) {
		int[] array = {1,2,3,4,5,6};
		
		for (int i = 0; i < array.length/2; i++) {
			int temp = array[(array.length-1)-i];
			array[(array.length-1)-i] = array[i];
			array[i] = temp;
		}
		
		for(int i : array){
			System.out.print(i+" ");
		}
	}

}
